package com.cx.mall.demo.dao;

import java.sql.SQLException;

public interface IBaseDao<T> {
    //增加数据
    void insert(T entity) throws SQLException;
    //修改数据
    void updateById(T entity) throws SQLException;
    //删除数据
    void deleteById(Long id) throws SQLException;
    //根据id查询数据
    T selectById(Long id) throws Exception;
}
